package com.ahwei.user.util.easyexcel.converter;

import com.ahwei.user.entity.User;
import com.ahwei.user.util.easyexcel.entity.ExcelEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <p>
 * 这是一个Java文件！
 * </p>
 *
 * @author ahWei
 * @email：ahwei163@qq.com
 * @since 2022-06-16 14:58:40
 */
@Mapper
public interface ExcelEntityConvert {
    /**
     * 获得接口实例
     */
    ExcelEntityConvert INSTANCE = Mappers.getMapper(ExcelEntityConvert.class);

    /**
     * po列表转excel列表
     * @param userList ·
     * @return ·
     */
    List<ExcelEntity> entityList2excelList(List<User> userList);



    /**
     * excel列表转po列表
     * @param userDtoList ·
     * @return ·
     */
    List<User> excelList2entityList(List<ExcelEntity> userDtoList);
}
